<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>额外赔偿</title> 
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>
<script type='text/javascript' src='dwr/interface/PassengerInfoRemote.js'></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
function doSubmit(){
flightAdjustSuperfluityForm.method="post";
flightAdjustSuperfluityForm.action="./flightAdjustSuperfluity.html?method=save";
flightAdjustSuperfluityForm.submit();
}
var msg = "<c:out value="${msg}"/>";
   if('SuperSuccess' == msg){
     opener.saveSuperfluity();
       window.close();
    

}
</script>
</head>

<body leftmargin="0" topmargin="0">
<html:form action="flightAdjustSuperfluity" method="post" styleId="flightAdjustSuperfluityForm">
<html:hidden property="id" />
<input type=hidden name=passengerInfoId id=passengerInfoId value=""/>
<input type=hidden name=flightInfoId id=flightInfoId value="<c:out value='${param.flightInfoId}'/>"/>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="44" class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">额外赔偿</td>
  </tr>
  <tr id="messageShowTrId" style="display:none;">
	<td valign="top" class="black12">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
	<td class="arror_bg_s">
	<span class="arror_title_s"> 
        请输入票号!<br/>
     </span>
    </td>
    </tr>
    </table>
	</td>
	</tr>
	<logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
   </logic:messagesPresent>
  <tr>
  
    <td height="40" class="home-search-space">&nbsp;<fmt:message key="common.warning"/></td>
  </tr>
  <tr>
    <td valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content">
				 <input type=button class="home-inputBtn" name="save"  onclick="doSubmit()" value="保存" disabled="true"/>
          
			<html:reset styleClass="home-inputBtn">
            			<fmt:message key="button.reset"/>
			</html:reset>
        		<html:button styleClass="home-inputBtn" property="method.cancel" onclick="window.close()">取消
            		
			</html:button>
		</td>
              </tr>
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top" class="home-edittable-space"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
		 	<tr>
                    <td width="20%" class="home-subtable-view-tdstyle-right">票号：</td>
                    <td width="30%" class="home-subtable-view-tdstyle-left"><input name="etNumber" id="etNumber" class="home-table-inputbox" type="text" size="10" value="" /> <input name="button" type="button" class="home-inputBtn" value="查询" onclick="checkEtNumber()" /> </td>
                    <td width="20%" class="home-subtable-view-tdstyle-right">旅客姓名：</td>
                    <td width="30%" class="home-subtable-view-tdstyle-left"><div id="name"></div></td>
		 </tr>
		 <tr>
                    <td class="home-subtable-view-tdstyle-right">票价折扣：</td>
                    <td class="home-subtable-view-tdstyle-left">8折</td>
                    <td class="home-subtable-view-tdstyle-right">舱位：</td>
                    <td class="home-subtable-view-tdstyle-left"><div id="calbinClass"></div></td>
		 </tr>
		 <tr>
                    <td class="home-subtable-view-tdstyle-right">补偿申请金额：</td>
                    <td class="home-subtable-view-tdstyle-left"><html:text property="applyMoney" styleClass="home-table-inputbox"  size="20"/>&nbsp;元</td>
                    <td class="home-subtable-view-tdstyle-right">其它要求：</td>
                    <td class="home-subtable-view-tdstyle-left"><html:text property="suggestion" styleClass="home-table-inputbox"  size="20" /></td>
		 </tr>
		 <tr>
                    <td class="home-subtable-view-tdstyle-right">申请原因：</td>
                    <td class="home-subtable-view-tdstyle-left"><html:text property="memo" styleClass="home-table-inputbox" size="20"/></td>
                    <td class="home-subtable-view-tdstyle-right"></td>
                    <td class="home-subtable-view-tdstyle-left"></td>
        </tr>
                        </table></td>
                    </tr>
                  </table> 
                </td>
              </tr>
            </table>
		  </td>
        </tr>
        <tr> 
          <td height="12">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
	  </td>
  </tr>
  <tr>
    <td height="10">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
<script type="text/javascript">
function search(){
var etNumber=document.getElementById("etNumber").value;
var flightInfoId=document.getElementById("flightInfoId").value;

PassengerInfoRemote.search(etNumber,flightInfoId,callBack);
etNumber="";
}
function callBack(data){
document.getElementById("name").innerHTML=data.chineseName==null?"<font color=\"red\">无此记录<\/font>":"<font color=\"red\">"+data.chineseName+"<\/font>";
document.getElementById("calbinClass").innerHTML=data.cabinClass==null?"<font color=\"red\">无此记录<\/font>":"<font color=\"red\">"+data.cabinClass+"<\/font>";
document.getElementById("passengerInfoId").value=data.id;

var obj=document.getElementById("save");
if(data.id==null){
obj.disabled=true;
}else{
obj.disabled=false;
}

}
function checkEtNumber(){

  var etNumber=document.getElementById("etNumber").value;
  
  if(etNumber==""){
    var messageShowTrIdTd=document.getElementById("messageShowTrId");
	messageShowTrIdTd.style.display="";
  }else{
  var messageShowTrIdTd=document.getElementById("messageShowTrId");
	messageShowTrIdTd.style.display="none";
     search();
  }
}
</script>

</html>
<%@ include file="/common/script.jsp"%>

